package org.jeecg.modules.wmhb.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.jeecg.modules.wmhb.entity.WmOutSource;
import org.jeecg.modules.wmhb.entity.WmProductRecpt;
import org.jeecg.modules.wmhb.mapper.WmOutSourceMapper;
import org.jeecg.modules.wmhb.service.IWmOutSourceService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 外协信息
 * @Author: jeecg-boot
 * @Date:   2024-09-26
 * @Version: V1.0
 */
@Service
public class WmOutSourceServiceImpl extends ServiceImpl<WmOutSourceMapper, WmOutSource> implements IWmOutSourceService {
    @Override
    public WmOutSource queryInfoByWmTaskId(String wmTaskId){
        LambdaQueryWrapper<WmOutSource> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(WmOutSource::getWmTaskId, wmTaskId);
        WmOutSource wmOutSource = getOne(queryWrapper);
        return wmOutSource;
    };
}
